import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userName:null,
    userInfo:null,
    pageNum:null,
    vuexTopicListId:null,
    vuexKeyWord:null,
  //  朱天成↓
    vuexskipid:null,
    vuexskipdate:null,
    vuexBoutiqueSkipDate:null,
  },
  mutations: {
    modifyUserName(state,payload){
      state.userName=payload.userName
    },
    modifyUserInfo(state,payload){
      state.userInfo=payload.userInfo
    },
    moidfypageNum(state,payload){
      state.pageNum=payload.pageNum
    },
    moidfyVuexTopicListId(state,payload){
      state.vuexTopicListId=payload.vuexTopicListId
    },
    moidfyVuexKeyWord(state,payload){
      state.vuexKeyWord=payload.vuexKeyWord
    },
    //朱天成
    skipid(state,payload){
      state.vuexskipid=payload.vuexskipid
    },
    skipdate(state,payload){
      state.vuexskipdate=payload.vuexskipdate
    },
    boutiqu(state,payload){
      state.vuexBoutiqueSkipDate=payload.vuexBoutiqueSkipDate
    }

  },
  actions: {
  },
  modules: {
  },
  plugins:[createPersistedState()]

})
